package com.io;

import java.io.*;

public class PrintWriterDemo01 {

    public static void main(String[] args) throws IOException {
        BufferedReader bufferedReader = new BufferedReader(new FileReader("d:\\dev\\1\\fw.txt"));

        PrintWriter printWriter = new PrintWriter("d:\\dev\\1\\pr.txt");

        String msg=null;
        while((msg=bufferedReader.readLine())!=null) {
            printWriter.write(msg);
        }
        bufferedReader.close();
        printWriter.close();
    }

}
